package com.party.mobile.web.dto.copartner.output;

import com.party.core.model.crowdfund.ProjectWithAuthor;
import org.springframework.beans.BeanUtils;

import java.util.Date;

/**
 * Created by wei.li.
 *
 * @date 2018/2/8 0008
 * @time 10:36
 */
public class RepresentProjectListOutput {
    //编号
    private String id;
    //创建者名称
    private String authorName;
    //创建者图片
    private String authorLogo;
    //创建时间
    private Date createDate;
    //支持者数目
    private Integer favorerNum;
    //实际筹集资金
    private Float actualAmount;
    //是否众筹成功
    private Integer isSuccess;

    //  是否为多场活动的项目
    private Integer isMultiple;

    public Integer getIsMultiple() {
        return isMultiple;
    }

    public void setIsMultiple(Integer isMultiple) {
        this.isMultiple = isMultiple;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    public String getAuthorLogo() {
        return authorLogo;
    }

    public void setAuthorLogo(String authorLogo) {
        this.authorLogo = authorLogo;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getFavorerNum() {
        return favorerNum;
    }

    public void setFavorerNum(Integer favorerNum) {
        this.favorerNum = favorerNum;
    }

    public Float getActualAmount() {
        return actualAmount;
    }

    public void setActualAmount(Float actualAmount) {
        this.actualAmount = actualAmount;
    }

    public Integer getIsSuccess() {
        return isSuccess;
    }

    public void setIsSuccess(Integer isSuccess) {
        this.isSuccess = isSuccess;
    }

    public static RepresentProjectListOutput transform(ProjectWithAuthor projectWithAuthor){
        RepresentProjectListOutput output = new RepresentProjectListOutput();
        BeanUtils.copyProperties(projectWithAuthor, output);
        return output;
    }
}
